import {createApp} from "vue";
import dialog from "./dialog.vue";
import ElementUI from 'element-plus';


export default (options)=>{
    const dft = {url:"", data:{}, title:"提示", width:"800px"};
    options = Object.assign(dft, options)
    const example = createApp(dialog,options);
    let parent = document.createElement("div");
    parent.id = "dialogmask";
    example.use(ElementUI).mount(parent);
    document.body.before(parent);
}